/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.Shop.dao;

import com.Shop.beans.Download;

/**
 *
 * @author cjh
 */
public class DownloadDao extends BaseDao {
    public Download downloadMsg(String filename){
        String hql="from Download where filename=?";
        return (Download)this.getSession().createQuery(hql).setParameter("filename",filename).uniqueResult();
    }
}
